package cn.chair.model.admin;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import life.innovation.model.BaseModel;
import life.innovation.model.Page;
import life.innovation.util.JsonDateDeserializer;
import life.innovation.util.JsonDateSerializer;

import java.util.Date;
import java.util.List;

public class WorkOrderResp extends BaseModel{

    private Page pagination;

    private List<WorkOrderList> list;

    public Page getPagination() {
        return pagination;
    }

    public void setPagination(Page pagination) {
        this.pagination = pagination;
    }

    public List<WorkOrderList> getList() {
        return list;
    }

    public void setList(List<WorkOrderList> list) {
        this.list = list;
    }

    public static class WorkOrderList extends BaseModel{
        private int workId;
        private String description;
        private int type;
        private String userAccount;
        @JsonSerialize(using = JsonDateSerializer.class)
        @JsonDeserialize(using = JsonDateDeserializer.class)
        private Date createTime;
        private int status;

        public int getWorkId() {
            return workId;
        }

        public void setWorkId(int workId) {
            this.workId = workId;
        }

        public String getDescription() {
            return description;
        }

        public void setDescription(String description) {
            this.description = description;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public String getUserAccount() {
            return userAccount;
        }

        public void setUserAccount(String userAccount) {
            this.userAccount = userAccount;
        }

        public Date getCreateTime() {
            return createTime;
        }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
        }

        public int getStatus() {
            return status;
        }

        public void setStatus(int status) {
            this.status = status;
        }
    }
}
